﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SocialScale
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            this.StartPosition = FormStartPosition.CenterScreen;//启动在屏幕中央
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            int v1 = Int32.Parse(textBox1.Text);

            int v2 = 0;
            if (v1 == 90)
            {
                v2 = 80;
            }
            else if (v1 == 199)
            {
                v2 = 100;
            }

            label3.Text = "恭喜您！您的体重约为：" + v2 + "多斤";
        }

        private void button2_Click(object sender, EventArgs e)
        {
            textBox1.Text = "";
            label3.Text = "";
        }


    }
}